/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package javamu;

/**
 *
 * @author Administrator
 */
public class HashClass {
	
	public static void main(String[] args) {
		StudentClass cfz = new StudentClass(27, "陈峰展");
		CourseClass yy = new CourseClass(1, "语文");
		CourseClass sx = new CourseClass(2, "数学");
		CourseClass ty = new CourseClass(4, "体育");
		cfz.addCourse(yy);
		cfz.addCourse(sx);
		cfz.addCourse(sx);
		cfz.addCourse(new CourseClass(3, "语文"));
		//cfz.getCoursesByIterator();
		cfz.edtCourse(sx, new CourseClass(4, "品德"));
		//cfz.getCoursesByIterator();
		cfz.delCourse(new CourseClass(1, "语文")); //由于是新对象，是不相等的，无效
		cfz.delCourse(ty);
		cfz.getCourses();

		cfz.addAnserQuestion(11);
		cfz.addAnserQuestion(0, 22);
		cfz.edtAnserQuestion(0, 123);
		/*
		cfz.addAnserQuestion(10, 1010); //数组下标越界
		qone = cfz.getAnserQuestionS();
		System.out.println(qone);
		*/
		cfz.addAllAnserQuestion();
		System.out.println(cfz.getAnserQuestionS());
		cfz.delAnserQuestion(4);
		System.out.println(cfz.getAnserQuestionS());
		cfz.delAnserQuestion(new Integer(11));
		System.out.println(cfz.getAnserQuestionS());
		
		//cfz.addLnum(111);
		
		
	}
	
}
